// import { toast } from './utils/extendApi'
// import { Light } from 'XrFrame/components'
import './utils/extendApi'

// import { env } from './utils/env'

// import { setStorage, getStorage, removeStorage, clearStorage } from './utils/storage'
import { asyncSetStorage, asyncGetStorage, asyncRemoveStorage, asyncClearStorage } from './utils/storage'
App({
  onShow() {
    // asyncSetStorage('name', 'tom').then((res) => console.log(res))
    // asyncGetStorage('name').then((res) => console.log(res.data))
    // asyncRemoveStorage('name').then((res) => console.log(res))
    asyncClearStorage()
    // const accountInfo = wx.getAccountInfoSync()
    // console.log(accountInfo)
    // const { miniProgram: envVersion } = wx.getAccountInfoSync()
    // // const { envVersion } = miniProgram
    // console.log(envVersion)
  },
  globalData: {
    address: {}
  }
})
